<!DOCTYPE html>
<html lang="en">
<head>
    <title>会员列表</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=11" />

    <link rel="stylesheet" href="//cdn.bootcss.com/zui/1.9.1/css/zui.min.css">
    <link href="static/frame/zui-theme.css" rel="stylesheet" />
    <!-- ZUI Javascript 依赖 jQuery -->
    <script src="//cdn.bootcss.com/zui/1.9.1/lib/jquery/jquery.js"></script>
{#    <link href="https://cdn.bootcdn.net/ajax/libs/zui/1.10.0/lib/datagrid/zui.datagrid.min.css" rel="stylesheet">#}
{#    <script src="https://cdn.bootcdn.net/ajax/libs/zui/1.10.0/lib/datagrid/zui.datagrid.min.js"></script>#}
    <!-- ZUI 标准版压缩后的 JavaScript 文件 -->
    <script src="//cdn.bootcss.com/zui/1.9.1/js/zui.min.js"></script>
    <style>
            html, body {
                height: 100%;
                margin: 0;
                padding: 0;
            }
        </style>
</head>
<body>
    <table class="table table-bordered table-hover table-striped table-condensed" id="tableList" style="height: 100%;">
        <thead class="no-table-fixed" >
            <tr>
                <th>手机号</th>
                <th>微信号</th>
                <th>姓名</th>
                <th>注册时间</th>
                <th>有效期</th>
                <th>设备ID</th>
                <th>最后登录时间</th>
                <th>版本号</th>
                <th>版本名称</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for item in data.records %}
                <tr id="tr_{{ item.id }}">
                 {% if item.tel==None %}
                    <td></td>
                 {% else %}
                    <td>{{ item.tel }}</td>
                 {% endif %}
                {% if item.openid==None %}
                    <td></td>
                 {% else %}
                    <td>{{ item.openid }}</td>
                 {% endif %}
                   {% if item.name==None %}
                    <td></td>
                 {% else %}
                    <td>{{ item.name }}</td>
                 {% endif %}

                    <td>{{ item.reg_date }}</td>
                    <td>{{ item.valid_date }}</td>
                    <td>{{ item.device_id }}</td>
                    <td>{{ item.last_login }}</td>
                    <td>{{ item.ver_code }}</td>
                    <td>{{ item.ver_name }}</td>
                {% if item.comment==None %}
                    <td></td>
                 {% else %}
                    <td>{{ item.comment }}</td>
                 {% endif %}

                    <td>
                        <a href="#"  onclick="return modifyNickname('{{ item.id }}');">编辑</a>
                        <a href="#" >删除</a>
                    </td>
                </tr>
              {% endfor %}
            </tbody>
        <tfoot>

        </tfoot>
    </table>

<script type="text/javascript">
    function modifyNickname(id) {
            n = document.getElementById("sp_Nickname");
            parent.parent.parent.parent.ShowDilag('./member/edit?id=' + id , '修改会员信息', 350, 500, n);
            return false;
        }

</script>
</body>
</html>